//
//  ActionSheetBoot.swift
//  SwiftUIWidgetDemo
//
//  Created by alanzhangg on 2023/7/16.
//

import SwiftUI

struct ConfirmationDialogBoot: View {
    @State var showSheet: Bool = false
    var body: some View {
        Button("Click me") {
            showSheet.toggle()
        }
        .confirmationDialog("al", isPresented: $showSheet, titleVisibility: .visible, actions: {
            Button("nihao") {
                
            }
            Button("al", role: .destructive) {
                
            }
        })
//        .confirmationDialog("al", isPresented: $showSheet) {
//            
//        }
    }
}

#Preview {
    ConfirmationDialogBoot()
}
